<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Event Details</title>
<cfsilent>
<!--- prevent URL munge --->
<cfswitch expression="#StructKeyExists(url, "EventID")#">
	<cfcase value="False">
		<cflocation url="index.cfm" addtoken="false" />
	</cfcase>
	<cfcase value="True">
		<cfif NOT isValid("uuid", EventID)>
			<cflocation url="index.cfm" addtoken="false" />
		</cfif>
	</cfcase>
</cfswitch>
<!--- get record to display --->
<cfinvoke component="#application.KConfig.getCFCPath()#kalendar"
			method="getSingleRecord"
			eventid="#url.EventID#"
			returnvariable="EventDetails" />
</cfsilent>
<link href="<cfoutput>#application.KConfig.getKalendarURLPath()#</cfoutput>common/css/kalendar.css" rel="stylesheet" type="text/css" />
</head>
<body>
Format this page to your liking using the results from the component call.
<p /></p>
<cfoutput query="EventDetails">
<span class="calendarTitle">#DateFormat(EventDetails.StartDate, "dddd mmmm dd, yyyy")#<cfif EventDetails.StartDate neq EventDetails.EndDate> - #DateFormat(EventDetails.EndDate, "dddd mmmm dd, yyyy")#</cfif></span><br />
<span class="calendarTitle" style="font-size:22px;">#EventDetails.Title#</span>
<p />
<cfif Len(Trim(EventDetails.StartTime))><b>Time</b>: #TimeFormat(EventDetails.StartTime, "h:mm tt")#<cfif Len(Trim(EventDetails.EndTime))> - #TimeFormat(EventDetails.EndTime, "h:mm tt")#</cfif></cfif>
<span class="miniCalendarEventDisplay">#EventDetails.Description#<p />
<cfif Len(Trim(EventDetails.Location))><br />
<b>Location</b>: #EventDetails.Location#</cfif>
<cfif Len(Trim(EventDetails.ContactName))><br />
<b>Contact</b>: #EventDetails.ContactName#</cfif>
<cfif Len(Trim(EventDetails.ContactPhone))><br />
<b>Phone</b>: #EventDetails.ContactPhone#</cfif>
<cfif Len(Trim(EventDetails.ContactEmail))><br />
<b>E-mail</b>: <a href="mailto:#EventDetails.ContactEmail#">#EventDetails.ContactEmail#</a></cfif>
<cfif Len(Trim(EventDetails.ExternalURL))><br />
<b>Website</b>: <a href="http://#Replace(EventDetails.ExternalURL, 'http://', '', 'ALL')#" target="_blank">#EventDetails.ExternalURL#</a></cfif></span>
<div style="display:none;" class="vevent">
<span class="dtstamp">#DateFormat(Now(), "yyyy-mm-dd")#T#TimeFormat(Now(), "HH:mm:ss")#</span>
<span class="summary title">#Trim(EventDetails.Title)#</span>
<a href="http://#cgi.server_name##cgi.script_name#?EventID=#EventDetails.EventID#" class="url">Event Link</a>
<span class="description">#EventDetails.Description#</span>
<span class="dtstart" title="#DateFormat(EventDetails.StartDate, "yyyy-mm-dd")#<cfif Len(Trim(EventDetails.StartTime))>T#TimeFormat(EventDetails.StartTime, "HH:mm:ss")#</cfif>">#DateFormat(EventDetails.StartDate, "yyyy-mm-dd")#<cfif Len(Trim(EventDetails.StartTime))>T#TimeFormat(EventDetails.StartTime, "HH:mm:ss")#</cfif></span>
<cfif EventDetails.StartDate neq EventDetails.EndDate AND EventDetails.StartTime neq EventDetails.EndTime><span class="dtend" title="<cfif EventDetails.EndDate neq EventDetails.StartDate>#DateFormat(EventDetails.EndDate, "yyyy-mm-dd")#<cfelse>#DateFormat(EventDetails.StartDate, "yyyy-mm-dd")#</cfif><cfif Len(Trim(EventDetails.EndTime))>T#TimeFormat(EventDetails.EndTime, "HH:mm:ss")#</cfif>"><cfif EventDetails.EndDate neq EventDetails.StartDate>#DateFormat(EventDetails.EndDate, "yyyy-mm-dd")#<cfelse>#DateFormat(EventDetails.StartDate, "yyyy-mm-dd")#</cfif><cfif Len(Trim(EventDetails.EndTime))>T#TimeFormat(EventDetails.EndTime, "HH:mm:ss")#</cfif></span></cfif>
</div>
</cfoutput>
</body>
</html>